package lu.med.praxiswahl.wahlumed.client.utilities;

import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;

import javax.swing.JDialog;

@SuppressWarnings("serial")
public class FontDialog extends JDialog
{
    public FontChooser font = new FontChooser(this);

    public FontDialog()
    {
	this.setTitle("Schriftart w" + UniCode.getae() + "hlen");
	this.setLocation(new Point(100, 100));
	this.setSize(new Dimension(360, 242));
	this.getContentPane().add(font);
	this.setModal(true);
    }

    public Font showDialog()
    {
	this.setVisible(true);
	return this.font.SelectedFont;
    }
}
